<?php include "teacher_sess.php"; 

include "connect.php";
	  $sess=$_POST['sess'];
	  $class=$_POST['class'];
	  $subject=$_POST['subject'];
	  $teacherid=$_SESSION['teacher'];?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Education 1</title>
<!--// Stylesheet //-->
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/ddsmoothmenu.css" rel="stylesheet" type="text/css" />
<link href="css/jquery.fancybox-1.3.1.css" rel="stylesheet" type="text/css" />
<!--// Javascript //-->
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/ddsmoothmenu.js"></script>
<script type="text/javascript" src="js/menu.js"></script>
<script type="text/javascript" src="js/contentslider.js"></script>
<script type="text/javascript" src="js/cufon-yui.js"></script>
<script type="text/javascript" src="js/Tahoma_5F400-Tahoma_700.font.js"></script>
<script type="text/javascript">Cufon.replace('h1, h2, h3, h4, h5, h6, .cufontxt');</script>
<script type="text/javascript" src="js/jquery.fancybox-1.3.1.js"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<script type="text/javascript" src="js/animatedcollapse.js"></script>
<script type="text/javascript" src="js/collapse.js"></script>
<!--[if lte IE 7]><style>.gallery .buttons{padding-left:300px; width:640px;}.gallery .buttons a{float:left;}</style><![endif]--><!-- that's IT-->
<style type="text/css">
#develop {
	color: #FFF;
	font-size: 14px;
}
</style>
</head>
<body class="subpage">
<!-- Wrapper -->
<div id="wrapper_sec">
	<!-- Header -->
    <div id="masthead" class="smallhead">
        <!-- Top Section -->
        <div class="topsec">
            <div class="inner">
                
          
            </div>
        </div>
        <div class="clear"></div>
        <!-- Small Banner -->
        <div class="smallbanner">
            <div class="inner">
                <div class="logo">
                	<a href="index.html"><img src="images/logo.png" alt="" /></a>
                </div>
            </div>
        </div>
        <div class="clear"></div>
        <!-- Navigation -->
        <div class="navigation">
        	<div class="inner">
        		<div id="smoothmenu1" class="ddsmoothmenu">
                    <ul>
                        <li><a href="home teacher.php">Home</a></li>
                        <li class="down"><a href="1student attendence tea.php">Attendence</a>
                        </li>
                        <li class="down"><a href="student test tea.php">Student Test</a>
                            <ul>
                                <li><a href="1monthly test tea.php">Monthly Test</a></li>
                                <li><a href="1send up tea.php">Send Up</a></li>
                                <li><a href="1board tea.php">Board</a></li>
                             
         						</ul>
                        </li>
                        <li class="down"><a href="profile teacher.php">Profile</a>
                            <ul>
                                <li><a href="check profile tea.php">Check Profile</a></li>
                                <li><a href="change password tea.php">Change Password</a></li>
                                
                                
                            </ul>
                        </li>
                        
                      
                      
                    </ul>
                    <div class="clear"></div>
                </div>
                <ul class="loginsec">
                	
                    <li><a href="logout.php"  class="buttonone">Logout</a></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="clear"></div>
    <!-- Content Section -->
    <div id="content_sec">
    	<div class="inner">
        	<!-- Bread Crumb -->
        	<div class="clear">
              <table width="100%" border="0">
                <tr>
                  <td><table width="100%" border="0">
                    <tr>
                      <td align="center"><form action="board_tea.php" method="post" name="form1" id="form1">
                        <?php
	  include "connect.php";
	  $sess=$_POST['sess'];
	  $class=$_POST['class'];
	  $subject=$_POST['subject']; ?>
                        <table width="100%" border="0">
                          <tr>
                            <td colspan="6" align="center"><strong>Board</strong></td>
                          </tr>
                          <tr>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                          </tr>
                          <tr>
                            <td align="right">date</td>
                            <td width="2%">&nbsp;</td>
                            <td width="15%" height="30"><label for="date">
                              <input type="text" name="date" id="date" />
                            </label></td>
                            <td width="15%" align="right">Total marks</td>
                            <td width="2%">&nbsp;</td>
                            <td><input type="text" name="tmarks" id="tmarks" /></td>
                          </tr>
                          <tr>
                            <td align="right">year</td>
                            <td width="2%">&nbsp;</td>
                            <td width="15%" height="30"><label for="year2"></label>
                              <input type="text" name="year" id="year2" /></td>
                            <td width="15%" align="right">class_id</td>
                            <td width="2%">&nbsp;</td>
                            <td><input name="class_id" type="text" id="class_id" value="<?php echo $class ; ?>" readonly="readonly" /></td>
                          </tr>
                          <tr>
                            <td align="right">dept_id</td>
                            <td width="2%">&nbsp;</td>
                            <td width="15%" height="30"><input type="text" name="dept_id" id="dept_id" /></td>
                            <td width="15%" align="right">session_id</td>
                            <td width="2%">&nbsp;</td>
                            <td><input name="session_id" type="text" id="session_id" value="<?php echo $sess ; ?>" readonly="readonly" /></td>
                          </tr>
                          <tr>
                            <td align="right">&nbsp;</td>
                            <td width="2%">&nbsp;</td>
                            <td width="15%" height="30"><label for="tmarks"></label></td>
                            <td width="15%" align="right">Subject</td>
                            <td width="2%">&nbsp;</td>
                            <td><label for="subject"></label>
                              <input name="subject" type="text" id="subject" value="<?php echo $subject ; ?>" readonly="readonly" /></td>
                          </tr>
                          <tr>
                            <td align="right">&nbsp;</td>
                            <td>&nbsp;</td>
                            <td height="30">&nbsp;</td>
                            <td align="right">&nbsp;</td>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                          </tr>
                          <tr>
                            <td colspan="6" align="right"><table width="100%" border="0">
                              <tr>
                                <td align="center"><table width="80%" border="1">
                                  <?php
	  
	    $sql=mysql_query("select * from student_subject where session_id=' $sess' AND class_id='$class' AND subject_id='$subject'" ); ?>
                                  <tr>
                                    <td>Roll no</td>
                                    <td>Roll no Board</td>
                                    <td>Marks Obtained</td>
                                  </tr>
                                  <?php  
			 $i=0;
            while($row=mysql_fetch_array($sql) )
            {
           $i++;
            
            
            extract($row);
			  ?>
                                  <tr>
                                    <td><?php echo $roll_no;?></td>
                                    <td><label for="board<?php echo "$roll_no";?>"></label>
                                      <input type="text" name="board<?php echo "$roll_no";?>" id="board<?php echo "$roll_no";?>" /></td>
                                    <td><label for="marks<?php echo "$roll_no";?>"></label>
                                      <input type="text" name="marks<?php echo "$roll_no";?>" id="marks<?php echo "$roll_no";?>" /></td>
                                  </tr>
                                  <?php } ?>
                                </table></td>
                              </tr>
                            </table></td>
                          </tr>
                          <tr>
                            <td colspan="6" align="center"><input type="submit" name="button" id="button" value="Submit" /></td>
                          </tr>
                        </table>
                        </td>
                        </tr>
                    </form></td>
                    </tr>
                  </table></td>
                </tr>
              </table>
            </div>
        	<!-- Column 3 -->
   	    <div class="clear"></div>
            <!-- Affiliations -->
            <div class="clear"></div>
        </div>
    </div>
    <div class="clear"></div>
    <!-- Footer -->
    <div id="footer">
    <div class="clear"></div>
        <div class="copy_inner">
        	<p><table width="100%" border="0">
  <tr>
    <td align="center" bgcolor="#5085C7" id="develop">Developed by Compact Sols</td>
  </tr>
</table>
</p>
            
           
            <a href="#" class="top">Top</a>
        </div>
    </div>
</div>
</body>
</html>
